package com.design.components;

import java.util.List;

import com.data.IdManager;

public class Entry extends DesignComponent implements AttributeTypes {
	
	//**************************************************************************************************
	//	Constructor.
	//**************************************************************************************************
	
	public Entry () {
		super(IdManager.ENTRY_PREFIX);
	}
	
	public Entry (int linkWith, String text) {
		this();
		this.text = text;
		this.linksWith = linkWith;
	}
	
	/**
	 * @param linkWith The component to which this entry is linked.
	 * @param text The text of the entry.
	 * @param name The name of the entry.
	 * */
	public Entry (int linkWith, String text, String name) {
		this(linkWith, text);
		this.name = name;
	}
	
	//**************************************************************************************************
	//	Attributes.
	//**************************************************************************************************
	
	private int linksWith;
	private String text;
	
	//**************************************************************************************************
	//	Public Methods.
	//**************************************************************************************************

	@Override
	public void dumpAttributes(List <String> names, List <String> values) {
		super.dumpCommonAttributes(names, values);
	}
	
	@Override
	public void keepAttributes(List<String> values) {
		
	}
	
	//**************************************************************************************************
	//	Getters & Setters.
	//**************************************************************************************************
	
	public void setBehaviors(int behaviors) {
		this.linksWith = behaviors;
	}
	public int getBehaviors() {
		return linksWith;
	}

	public void setText(String entries) {
		this.text = entries;
	}
	public String getText() {
		return text;
	}
}
